﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/admin.master" Inherits="System.Web.Mvc.ViewPage<CollegeWebsite.Areas.Administrator.Models.Subject>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Add New Subject</h2>
 <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend></legend>                        
            
            <div class="editor-label">
                <strong>Name:</strong>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.SubjectName) %>
                <%= Html.ValidationMessageFor(model => model.SubjectName) %>
            </div>
            
            <div class="editor-label">
                <strong>Description:</strong>
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.SujectDescription) %>
                <%= Html.ValidationMessageFor(model => model.SujectDescription) %>
            </div>                        
            
            <div class="editor-label">
               <strong>Status:</strong>
            </div>
            <div class="editor-field">
                <%= Html.CheckBoxFor(model => model.Status) %>  <label for="Status">Enable</label>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PageHeadingPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SlideBarRight" runat="server">
</asp:Content>

